-- GENERATED SPELL FOR [Bone Mage] --


function spell0_16120(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(15043,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16120', 7000, 1)
end

function Sorts_16120(pUnit, Event)
local choix_sorts_16120 = math.random(0, 0)
if choix_sorts_16120 == 0 then
pUnit:RegisterEvent('spell0_16120', 1, 1)
end
end

function mob16120_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16120', math.random(1500, 3000), 1)
end

function mob16120_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16120_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16120_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16120, 1, 'mob16120_Action')
RegisterUnitEvent(16120, 2, 'mob16120_Leave')
RegisterUnitEvent(16120, 3, 'mob16120_Kill')
RegisterUnitEvent(16120, 4, 'mob16120_Die')
